package org.example.service.Impl;


import org.example.bean.Supplier;
import org.example.mapper.SupplierDao;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class SupplierServise {
    @Autowired
    SupplierDao supplierDao;
    public List<Supplier> getAll(){
        return supplierDao.list();
    };
    public void del(int id){
        supplierDao.del(id);
    };
    public void add(Supplier supplier){supplierDao.add(supplier);}
    public void update(Supplier supplier){supplierDao.update(supplier);}
}
